package com.EE7th.service;

import com.EE7th.Result.PageResult;
import com.EE7th.domain.Teacher;
import com.EE7th.dto.PageQueryDTO;
import com.EE7th.dto.TeacherDTO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface TeacherService {
    void insertTeacher(Teacher teacher);
    void deleteTeacher(int id);
    void linkTeacherClass(int teacherId, int classId);
    void unlinkTeacherClass(int teacherId, int classId);
    List<TeacherDTO> getTeacherSelection();
    PageResult pageQuery(PageQueryDTO pageQueryDTO);
}